package com.bestv.search.spider.youku.model.attr;

import com.bestv.search.spider.util.SpiderConst;
import net.sf.json.JSONObject;

public class AliasName {
    private String type;
    private String alias;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    @Override
    public String toString() {
        JSONObject json = new JSONObject();
        json.put(SpiderConst.TYPE, this.getType());
        json.put(SpiderConst.NAME, this.getAlias());
        return json.toString();
    }
}